<?php
header ( "Content-Type:text/html; charset=utf-8" );
include '../public/db.php';
session_start();
@$cid=$_SESSION['aid'];
//@$p=$_REQUEST['aid'];
$pool = selectAll(
	'select user.id,userinfo.name,userinfo.sex,userinfo.place,userinfo.date,Mycustomer.follow from user join userinfo on user.id=userinfo.uid join Mycustomer on user.id=Mycustomer.uid where user.id in(select uid from Mycustomer where aid=:aid)',
	array('aid'=>$cid));
//var_dump($pool);
echo json_encode($pool);